package org.cheniy.domain.strategy.service;

import org.cheniy.domain.strategy.model.valobj.StrategyAwardStockKeyVO;

/**
 * @author cheniy
 * @description 抽奖后库存处理接口，获取库存消耗队列
 * @create 2025/3/11 15:17
 */
public interface IRaffleStock {

    /**
     * 获取奖品库存消耗队列中的奖品
     * @return
     * @throws InterruptedException
     */
    StrategyAwardStockKeyVO takeQueueValue() throws InterruptedException;

    /**
     * 更新奖品库存消耗记录 更新数据库
     * @param strategyId
     * @param awardId
     */
    void updateStrategyAwardStock(Long strategyId,Integer awardId);
}
